home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_772
/
frame_1
/
PlaceObject2_575_148
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
1KB
|
34 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
if(_root.level.sprite._x > _X - 100 + _parent._x and _root.level.sprite._x < _X + 100 + _parent._x and _root.level.sprite._y > _Y - 100 + _parent._y and _root.level.sprite._y < _Y + 100 + _parent._y and _root.level.sprite.inair == false)
{
gotoAndStop(1);
if(key.isdown(88) and keypressed == false and _root.level.backscenery.blob1._currentframe <= 50)
{
_root.paused = true;
_root.conversation = true;
keypressed = true;
_root.level.sprite.gotoAndStop("stand");
_root.topic = "blob1";
}
if(key.isdown(88) and keypressed == false and _root.level.backscenery.blob1._currentframe >= 85 and _root.level.backscenery.blob1._currentframe < 120)
{
_root.paused = true;
_root.conversation = true;
keypressed = true;
_root.level.sprite.gotoAndStop("stand");
_root.topic = "blob1sleep";
}
}
else
{
gotoAndStop(2);
}
if(key.isdown(88) == false)
{
keypressed = false;
}
}
}